/**
 * @Author: leibidong
 * @Description:
 * @File:  timeUtil
 * @Version: 1.0.0
 * @Date: 2021/7/3 11:21
 */

package utils

import (
	"strconv"
	"time"
)

/**
 * @Author leibidong
 * @Description 获取当前时间工具类
 * @Date  2021/7/3 11:22
 **/
func GetTime() (s string) {
	return time.Now().Format("2006-01-02 15:04:05")
}

/**
 * @Author leibidong
 * @Description string类型转为int类型
 * @Date  2021/7/11 17:41
 **/
func StringToInt(s string) int {
	id, _ := strconv.Atoi(s)
	return id
}
